<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/resources/template/template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ca="http://java.sun.com/jsf/composite/cashSummery"
                xmlns:lab="http://java.sun.com/jsf/composite/lab" 
                xmlns:pe="http://primefaces.org/ui/extensions">

    <ui:define name="content">
        <h:outputStylesheet library="css" name="printing.css"></h:outputStylesheet>
        <h:form >

            <p:panel>
                <f:facet name="header" >
                    <h:outputLabel value="Investigation Summary Regent Fee with Credit"  styleClass="noPrintButton" />
                </f:facet>

                <h:panelGrid columns="2" >
                    <h:outputLabel value="From Date"/>
                    <p:calendar id="frmDate" value="#{bookKeepingSummery.fromDate}" navigator="true"  pattern="dd MM yyyy HH:mm:ss" >
                    </p:calendar>

                    <h:outputLabel value="To Date"/>
                    <p:calendar id="toDate" value="#{bookKeepingSummery.toDate}" navigator="true" pattern="dd MM yyyy HH:mm:ss" >
                    </p:calendar>

                    <h:outputLabel value="Select Institution"/>

                    <p:autoComplete completeMethod="#{institutionController.completeCompany}" required="true" 
                                    forceSelection="true"
                                    requiredMessage="Please Select Institution" value="#{bookKeepingSummery.institution}"
                                    var="pta" itemLabel="#{pta.name}" itemValue="#{pta}" />

                </h:panelGrid>   
                <h:panelGrid columns="3">
                        <p:commandButton value="Refresh" ajax="false"  styleClass="noPrintButton" style="float: right;"
                                        action="#{bookKeepingSummery.createOPdLabListWithProDayEndTableWithCredit()}"/>

                        <p:commandButton ajax="false" value="Print"  styleClass="noPrintButton" style="float: right;" >
                            <p:printer target="panelPrint" />
                        </p:commandButton>
                        <p:commandButton value="Excel" ajax="false" styleClass="noPrintButton" style="float: right;">
                            <pe:exporter type="xlsx" target="tbl1"
                                         fileName="Book_Keeping_Summery_without_pro_day"
                                         facetFontStyle="BOLD"   cellFontStyle="NORMAL"  
                                         fontName="Courier New"  />
                        </p:commandButton>

                </h:panelGrid>

                
            </p:panel>
            <!--            <p:spacer height="30" />-->

            <p:panel id="panelPrint" styleClass="noBorder summeryBorder">
                <lab:opd_new id="opd_new" reagent="true"/>
            </p:panel>
            



        </h:form>
    </ui:define>


</ui:composition>
